package com.meituan.verintreport;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class,DataSourceTransactionManagerAutoConfiguration.class, MybatisAutoConfiguration.class})
@AutoConfigureAfter(MybatisAutoConfiguration.class)
@ImportResource("classpath:spring/applicationcontext-*.xml")
@MapperScan(basePackages = {"com.meituan.verintreport.db.dao.*","com.meituan.verintreport.db.verint.*"})
@EnableScheduling
@EnableAsync
public class VerintReportApplication {

	public static void main(String[] args) {
		SpringApplication.run(VerintReportApplication.class, args);
	}
}
